]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add shell_global_get_workspace_manager ()
authorIvan Molodetskikh <yalterz@gmail.com>
Sun, 31 Jul 2022 17:35:26 +0000 (10:35 -0700)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 3 Aug 2022 12:30:31 +0000 (12:30 +0000)
It will be used in the subsequent commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2394>

src/shell-global.c
src/shell-global.h

index 60f078f3b965f9a8feeb8ea28b4e4763cf452221..0ccdb102995ed9c8a8eca99596bf3863c4f0f5c3 100644 (file)
@@ -843,6 +843,17 @@ shell_global_get_display (ShellGlobal  *global)
   return global->meta_display;
 }
 
+/**
+ * shell_global_get_workspace_manager:
+ *
+ * Return value: (transfer none): The default #MetaWorkspaceManager
+ */
+MetaWorkspaceManager *
+shell_global_get_workspace_manager (ShellGlobal  *global)
+{
+  return global->workspace_manager;
+}
+
 /**
  * shell_global_get_window_actors:
  *
index d5e77ea3fe3b7dd7008b7f80e7761a6a11b6695e..8d8238ca220f501e33fb4c6e61f70381150d9029 100644 (file)
@@ -13,13 +13,14 @@ G_BEGIN_DECLS
 #define SHELL_TYPE_GLOBAL (shell_global_get_type ())
 G_DECLARE_FINAL_TYPE (ShellGlobal, shell_global, SHELL, GLOBAL, GObject)
 
-ShellGlobal   *shell_global_get                       (void);
-
-ClutterStage  *shell_global_get_stage                 (ShellGlobal *global);
-MetaDisplay   *shell_global_get_display               (ShellGlobal *global);
-GList         *shell_global_get_window_actors         (ShellGlobal *global);
-GSettings     *shell_global_get_settings              (ShellGlobal *global);
-guint32        shell_global_get_current_time          (ShellGlobal *global);
+ShellGlobal          *shell_global_get                       (void);
+
+ClutterStage         *shell_global_get_stage                 (ShellGlobal *global);
+MetaDisplay          *shell_global_get_display               (ShellGlobal *global);
+GList                *shell_global_get_window_actors         (ShellGlobal *global);
+GSettings            *shell_global_get_settings              (ShellGlobal *global);
+guint32               shell_global_get_current_time          (ShellGlobal *global);
+MetaWorkspaceManager *shell_global_get_workspace_manager     (ShellGlobal *global);
 
 
 /* Input/event handling */